<template>
  <div class="crumb">
    <template v-for="(item, index) in navs">
      <a href="" :key="index" @click="$route.push(`${item.link}`)">{{ item.name }}</a>
      <template v-if="index < navs.length-1">/</template>
    </template>
  </div>
</template>

<script>
export default {
  props: ["navs"],
};
</script>

<style lang="less" scoped>
.crumb {
  line-height: 40px;
  font-size: 16px;
  font-family: SourceHanSansSC;
  font-weight: 300;

  a{
    margin: 0 10px;
    color: #999999;
    text-decoration: none;
    &:last-of-type{
      color:#333;
    }
  }
}
</style>